<?php class Controller_Admin_Index_Home extends ypAdminController {	public function Index() {		$this->checkLogin();		$this->loadLanguage('Admin/Index/Home');				$this->Loader->model('Admin/Index/Home');		$this->set('news', $this->Model_Admin_Index_Home->loadNewsPost(4));				// Settings link		$this->set('site_setting_link', $this->Link->build('Admin/Setting/Site'));		$this->set('server_setting_link', $this->Link->build('Admin/Setting/Server'));		$this->set('user_setting_link', $this->Link->build('Admin/Setting/User'));		// Module news link		$this->set('all_post_link', $this->Link->build('Admin/Module/News/Listpost'));		$this->set('new_post_link', $this->Link->build('Admin/Module/News/Newpost'));				// ===============		$this->setTemplate('module/Index/Home.php');		$this->Document->setTitle($this->_data['title']);		$this->setTemplateChild(array(			'Admin/System/Header',			'Admin/System/Footer'		));		$this->Response->setOutput($this->render());	}}